package pack;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


import java.io.Serializable;

/**
 * This class stores information of a course. Course objs both on server and client sides must be same.
 *
 * @author shuyi
 */
public class Course implements Serializable {
    
    public Course(){
        
    }
    
    public Course(int course_id, String title, String body){
        this.course_id=course_id;
        this.title=title;
        this.body=body;
    }
    
    //accessors and mutators
    public void setCourse_id(int course_id) {
        this.course_id = course_id;
    }

    public int getCourse_id() {
        return this.course_id;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTitle() {
        return this.title;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public String getBody() {
        return this.body;
    }
    
    // fields
    private int course_id;
    private String title;
    private String body;
}
